package test.course.pages {
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class HeaderAndBody extends Sprite {
		private var _headerField:TextField;
		private var _bodyField:TextField;

		public function HeaderAndBody() {
			_headerField=new TextField();
			_headerField.text="<header>";
			addChild(_headerField);

			_bodyField=new TextField();
			_bodyField.text="<body>";
			_bodyField.y=50;
			addChild(_bodyField);
		}

		[Property]
		public function set header(value:String):void {
			_headerField.text=value;
		}

		[Property]
		public function set body(value:String):void {
			_bodyField.text=value;
		}
	}
}